package com.lwisn.demo.factory;

import com.lwisn.demo.encoding.EncodingType;
import com.lwisn.demo.logic.FileEncoder;
import com.lwisn.demo.logic.FileEncoderUnicode;
import com.lwisn.demo.logic.FileEncoderUtf8;

public class FileEncoderFactory {

	public static FileEncoder getEncoder(EncodingType type) {
		switch(type) {
		case UTF8: 
			return new FileEncoderUtf8();
		case UNICODE:
			return new FileEncoderUnicode();
		default: break;
		}
		return null;
	}
}
